﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Lifang.Entites
{
    public interface IBaseDbEntity<T> where T : class, new()
    {
        int GetPkValue();
        string GetDbName();
        string GetInsertSql();
        string GetPkName();
        string GetSelectSql();
        string GetTableName();
        string ColumnNameForSelect();
        string ColumnNameForSelectParam();
        string ColumnNameForUpdate();
        string ColumnNameForUpdateParam();
        Dictionary<string, string> GetFieldNotes();
        Dictionary<string, Type> GetFieldNames();
        void SetDefaultValue();
        void SetPkValue(int pkVal);

    }
}
